package com.oocl.o2o.merchant.controller.rest;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.oocl.o2o.merchant.entity.FoodType;
import com.oocl.o2o.merchant.service.FoodManager;

@RestController
@RequestMapping("/sec/rest/foodType")
public class FoodTypeController {
	@Autowired
	private FoodManager foodManager;
	@GetMapping
	public List<FoodType> getFoodTypes(){
		return foodManager.findFoodType();
	}
}
